<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-machine-add">
			<div class="form-group">	
				<label class="col-sm-3 control-label">设备编号：</label>
				<div class="col-sm-8">
					<input id="macUids" name="macUids" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">设备地址：</label>
				<div class="col-sm-8">
					<input id="macAddress" name="macAddress" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">设备经度：</label>
				<div class="col-sm-8">
					<input id="macLong" name="macLong" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">设备纬度：</label>
				<div class="col-sm-8">
					<input id="macLat" name="macLat" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">设备使用状态：</label>
				<div class="col-sm-8">
					<input id="macState" name="macState" class="form-control" type="text" value="0" readonly>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">锁状态：</label>
				<div class="col-sm-8">
					<select class="form-control" id="lockState" name="lockState">
						<option label="正常" value="0"></option>
						<option label="异常" value="1"></option>
					</select>
					<!--<input id="lockState" name="lockState" class="form-control" type="text">-->
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">摄像头状态：</label>
				<div class="col-sm-8">
					<select class="form-control" id="ipcarmarState" name="ipcarmarState">
						<option label="正常" value="1"></option>
						<option label="关闭" value="0"></option>
						<option label="使用中" value="2"></option>
						<option label="不可用" value="-1"></option>
					</select>
					<!--<input id="ipcarmarState" name="ipcarmarState" class="form-control" type="text">-->
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">摄像头ID：</label>
				<div class="col-sm-8">
					<input id="ipcarmar" name="ipcarmar" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">摄像头账户：</label>
				<div class="col-sm-8">
					<input id="ipcarmarAdmin" name="ipcarmarAdmin" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">摄像头密码：</label>
				<div class="col-sm-8">
					<input id="ipcarmarPwd" name="ipcarmarPwd" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">风扇状态：</label>
				<div class="col-sm-8">
					<select class="form-control" id="fanState" name="fanState">
						<option label="正常" value="0"></option>
						<option label="异常" value="1"></option>
					</select>
					<!--<input id="fanState" name="fanState" class="form-control" type="text">-->
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">紫外线灯管状态：</label>
				<div class="col-sm-8">
					<select class="form-control" id="ledState" name="ledState">
						<option label="正常" value="0"></option>
						<option label="异常" value="1"></option>
					</select>
					<!--<input id="ledState" name="ledState" class="form-control" type="text">-->
				</div>
			</div>
			<!--<div class="form-group">	-->
				<!--<label class="col-sm-3 control-label">排序：</label>-->
				<!--<div class="col-sm-8">-->
					<!--<input id="order" name="order" class="form-control" type="text">-->
				<!--</div>-->
			<!--</div>-->
			<!--<div class="form-group">	-->
				<!--<label class="col-sm-3 control-label">创建人：</label>-->
				<!--<div class="col-sm-8">-->
					<!--<input id="createBy" name="createBy" class="form-control" type="text">-->
				<!--</div>-->
			<!--</div>-->
			<!--<div class="form-group">	-->
				<!--<label class="col-sm-3 control-label">创建时间：</label>-->
				<!--<div class="col-sm-8">-->
					<!--<input id="createDate" name="createDate" class="form-control" type="text">-->
				<!--</div>-->
			<!--</div>-->
			<!--<div class="form-group">	-->
				<!--<label class="col-sm-3 control-label">上传修改时间：</label>-->
				<!--<div class="col-sm-8">-->
					<!--<input id="updateDate" name="updateDate" class="form-control" type="text">-->
				<!--</div>-->
			<!--</div>-->
			<!--<div class="form-group">	-->
				<!--<label class="col-sm-3 control-label">修改人：</label>-->
				<!--<div class="col-sm-8">-->
					<!--<input id="updateBy" name="updateBy" class="form-control" type="text">-->
				<!--</div>-->
			<!--</div>-->
			<div class="form-group">	
				<label class="col-sm-3 control-label">备注：</label>
				<div class="col-sm-8">
					<input id="remarks" name="remarks" class="form-control" type="text">
				</div>
			</div>
			<!--<div class="form-group">	-->
				<!--<label class="col-sm-3 control-label">：</label>-->
				<!--<div class="col-sm-8">-->
					<!--<input id="delFlag" name="delFlag" class="form-control" type="text">-->
				<!--</div>-->
			<!--</div>-->
		</form>
	</div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "gxgw_modules/machine"
		$("#form-machine-add").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/add", $('#form-machine-add').serialize());
	        }
	    }
	</script>
</body>
</html>
